package com.itheima.dao;
import com.itheima.model.User;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;



public class UserRowMapper implements RowMapper<User>{
    public User mapRow(ResultSet resultSet, int i)throws SQLException{
        String name =resultSet.getString("name");
        User user = new User();
        user.setName(name);
        return user;
    }
}
